package com.jeesite.modules.exam.quota.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.exam.quota.entity.DcSupExamQuotaInfo;
import com.jeesite.modules.exam.quota.entity.DcSupExamQuotaOrg;
import com.jeesite.modules.exam.quota.entity.DcSupExamSumQuotaInfo;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * 考核任务指标表-被考核单位DAO接口
 * @author xhc
 * @version 2022-05-28
 */
@MyBatisDao
public interface DcSupExamQuotaOrgDao extends CrudDao<DcSupExamQuotaOrg> {


    List<DcSupExamQuotaOrg> findOrgByExamId(String examId);

    Integer findGoalOrg(DcSupExamQuotaInfo dan);

    void deleteOrg(DcSupExamQuotaOrg orgDelete);

    List<DcSupExamSumQuotaInfo> getAssessOrganization(DcSupExamSumQuotaInfo dcSupExamSumQuotaInfo);

    List<DcSupExamSumQuotaInfo> quotaPageList(DcSupExamSumQuotaInfo dcSupExamSumQuotaInfo);

    List<DcSupExamSumQuotaInfo> listOrgByQuota(DcSupExamSumQuotaInfo dcSupExamSumQuotaInfo);

    void batchUpdateQuotaContent(@Param("dcSupExamSumQuotaInfo") DcSupExamSumQuotaInfo dcSupExamSumQuotaInfo,@Param("ids") List<String> ids);

    List<DcSupExamSumQuotaInfo> checkQuotaContent(DcSupExamSumQuotaInfo dcSupExamSumQuotaInfo);

    List<DcSupExamQuotaOrg> findOrgByExamIdAndVersion(String examId, Long versionNumber);
}